<?php
namespace Model;

class RegMail {
	
	public function mailTO ($email, $username) {
		
		ini_set("SMTP", "smtp.edport.se");//confirm smtp
		
		$to=$email;
		// Your subject
		$subject="Välkommen till BjudNu";
		// From
		$header="from: test email <noreply@bjudnu.net>";
		// Your message
		$message="Välkommen $username \r\n";
		$message.="Click on this link to activate your account\r\n";
		$message.="You can not login to your new account until you have confirmed your activation\r\n";
		$message.="http://bjudnu.net/";
		// send email
		mail($to,$subject,$message,$header);
		
	}
	
	
}
